#include <QApplication>
#include "mainwidget.h"
#include "clientsocket.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    ClientSocket socket;
    if(!socket.readConfFile(QApplication::applicationDirPath()+"/client.conf")){
        return 0;
    }
    socket.connectToServer();
    MainWidget w;
    w.setSocket(&socket);
    w.show();
    return a.exec();
}
